//${magicEntity.description}
var execDb = db;
<#if datasourceKey??>
    executeDb = executeDb.${datasourceKey};
</#if>
executeDb = executeDb.camel();
executeDb = executeDb.table("${tableName}");
<#if isUpdateBlank??>
    executeDb = executeDb.withBlank();
</#if>
<#if pkParameterConfig??>
    <#if pkParameterConfig??>
        if(body.${pkParameterConfig.parameterKey}){
            executeDb = executeDb.primary("${pkParameterConfig.dbProperties}",body.${pkParameterConfig.parameterKey});
        }else {
        <#if pkParameterConfig.pkType == "autoIncr">
            executeDb = executeDb.primary("${pkParameterConfig.dbProperties}");
        <#elseif pkParameterConfig.pkType == "uuid">
            executeDb = executeDb.primary("${pkParameterConfig.dbProperties}", uuid());
        </#if>
        }
    </#if>
</#if>
return executeDb.save(body);